<template>
	<view class="apps">
		<view class="flex ptb20 plr20">
			<view class="f1 flex bgwhite f14 fweight4 aic jcc">
				{{info.title}}
			</view>
		</view>
		<view class="flex ptb20 plr20">
			<view class="f1 flex bgwhite">
				<uv-parse :content="info.content" :tagStyle="style"></uv-parse>
			</view>
		</view>
	</view>
</template>

<script>
	import { util } from '/common/util.js';
	let app;
	export default {
		data() {
			return {
				info:{
					title:'',
					content:'',
				},
				style:{
					'p':"font-size:26rpx;line-height:34rpx;",
					'img':'max-width:100%'
				}
			}
		},
		onLoad(option) {
			app = this;
			const id = option.id;
			app.getContent(id);
		},
		methods: {
			async getContent(id){
				const data =  await	util.request({
					url:"/mpwechat/noticedetail",
					data:{id:id}
				});
				if(data.code == 200){
					this.info = data.data;
				}
			},
			onShareAppMessage() {
			   return {
			     title: '融合体育 '+this.info.title,
			     path: '/pages/index/notice?id='+info.id,
			   }
			 }
		}
	}
</script>

<style scoped lang="scss">
	.logo_img{width:30px;height:40px;}
	.navbg{background-color: #008df2;}
	.address{background-color: #e8e8ff;}
	.shop image{width:100%;height: auto;box-sizing: border-box; border: 3px solid #fff; border-radius: 8px;}
</style>
